import { _decorator, Component, Label, Node } from 'cc';
import { UserData } from '../../UserData';

const { ccclass, property } = _decorator;

@ccclass('TopGem')
export class TopGem extends Component {
    @property(Label)
    private gemLabel: Label = null;

    protected update(dt: number): void {
        this.gemLabel.string = UserData.Coin.toString();
    }
}